#ifndef __GD32E23x_AUDIO_H__
#define __GD32E23x_AUDIO_H__

#include <stdint.h>

#define AUDIO_BUSY_CORE     RCC_AHBPeriph_GPIOB    
#define AUDIO_DATA_CORE     RCC_AHBPeriph_GPIOB

//#define AUDIO_BUSY_PIN      GPIO_Pin_5
//#define AUDIO_BUSY_BASE     GPIOB

//#define AUDIO_CLK_PIN		GPIO_Pin_6
#define AUDIO_DATA_PIN      GPIO_Pin_6

#define AUDIO_DATA_BASE     GPIOB
//#define AUDIO_CLK_BASE    	GPIOB

typedef struct {
    void (*init)(void);                 ///< 初始化
    void (*play)(uint8_t id);           ///< 播放audio
    void (*play_couple)(uint8_t id_1,uint8_t id_2);       ///< 播放
}audio_t_;

extern const audio_t_ g_audio_;

#endif
